package 线程.day2.demo6;

public class A implements Runnable {
    Thread t2;
    public void run() {
        try {
            //当前线程阻塞，让b线程执行
            t2.join();

        } catch (InterruptedException e) {}

        int i=0;
        while (i<100){
            System.out.println(Thread.currentThread().getName()+":"+i++);
        }
    }
}
